<div ng-controller="dictCtrl">
    <div class="x_panel" >
        <div class="form-inline">
            <div class="form-group">
                <label>名称</label>
                <input type="text" ng-model="search.name"  class="form-control" />
            </div>
            <button class="btn btn-primary" ng-click="find(1)" >查询</button>
            <button class="btn btn-default" ng-click="search.name=''" >重置</button>
        </div>
    </div>
    <table class="table table-bordered table-striped table-hover" >
        <thead class="title">
        <tr>
            <th class="text-center">NO</th>
            <th>名称</th>
            <th>值</th>
            <th style="width:120px">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="pageModel.data.length == 0">
            <td colspan="100" class="text-center">暂无记录</td>
        </tr>
        <tr ng-repeat="item in pageModel.data">
            <td class="text-center">{{$index + 1+pageModel.pageSize*pageModel.pageIndex}}</td>
            <td>{{item.name}}</td>
            <td><span ng-repeat="it in item.list">{{it.val}}{{$index<(item.list.length-1)?"、":""}}</span></td>
            <td>
                <a href='javascript:void(0)' ng-click='edit(item)' class='btn btn-xs btn-link'><span class='fa fa-edit'></span>编辑</a>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="page-footer clearfix" >
        <page page-model="pageModel"></page>
    </div>
</div>